package com.simtop.car.service;

import com.github.pagehelper.PageInfo;
import com.simtop.car.common.ServerResponse;
import com.simtop.car.pojo.*;

import java.io.IOException;
import java.util.Date;
import java.util.List;

public interface SourceService {

    List<Source> getSource();

    List<FieldMapping> getFieldMapping(Integer fieldSourceId);



    ServerResponse<PageInfo> getCarTypeSource(Integer pageNum, Integer pageSize, Integer sourceId, Date date, String[] brandType,User u,Date nowDate);

    ServerResponse<ConformityDataResult> dataIntegration(List<ConformityDataUtil> conformityDataUtilList,String[] brandType,User user);

    List<BusinessInformation> getDisplayDataBusinessInformation(String[] brandType,Integer uId);

    DisplayDataNews getDisplayDataNews(String[] brandType,Integer uId,Integer type);

    ServerResponse<DisplayDataNews> getDisplayDataPatent(String[] brandType, String data, Integer id);

    ServerResponse<TotalData> getTotalData(String[] brandType,Integer uId);

    ServerResponse<List<PatentClassificationNoUtil>> getPatentClassificationNo(String[] brandType,Integer uId);

    ServerResponse deleteSelfInfo(User u);

    List<ConformityData> filterConsolidatedData(String[] brandTypes,Integer uId,String source);

    ServerResponse<List<FieldMappingResult>> getSourceField(Integer[] sourceId);

    ServerResponse<List> sourceWordFrequency(ConformityDataListResult conformityDataListResult) throws IOException;

    ServerResponse commitConformityData(User user);

    ServerResponse dataReleaseDate( String[] sourceId, String[] brandType);

    ServerResponse getAllSourceCount(SourceCount sourceCount);
}
